Jump to content
  • 0

Проблема с подключением LESS


Kuzyo
 Share

Question

Всем привет. Почитал о ЛЕССе и решил попробовать, подключил и стал прописывать свойства в файле .less но r к сожалению со страницой html ничего не происходит.

Гляньте пожалуйста где может быть проблема.

Вот как прописал

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html"
xmlns="http://www.w3.org/1999/html">
<head>
<meta http-equiv="Content-Type"content="text/html; charset=utf-8">
<link rel="stylesheet/less" type="text/css" href="/css/action-settings.less">
<script src="/js/less-1.3.3.min.js" type="text/javascript"></script>

<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/fonts.css">

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/radio-button.js"></script>


<title>account-settings</title>

</head>

<body>
<!—————-ЗАГАЛЬНИЙ БЛОК——————-->
<div class="wrapper">

<!—————ШАПКА—————————->

<div class="wrapper__header">

<img class="header__logo" src="image/logo.png" alt="logo">

<div class="button-outline button-outline_header-startchallenge">
<button class="button-outline__button button-outline__button_header-startchallenge" value="start">
<h1>Start a challenge</h1>
</button>
</div>

<div class="button-outline button-outline_header-invitefriends ">
<button class="button-outline__button button-outline__button_header-invitefriends " value="invite-friends">
<h1>Invite friends</h1>
</button>
</div>

</div>

Следущее прописываю в .less (для примера)

.rounded-corners (@radius: 5px) {
border-radius: @radius;
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
}

.wrapper__header {
width: 810px;
height: 85px;

background-color: #333;
.rounded-corners
}

Edited by Kuzyo
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

для эксперимента попробовал, сделать простую страничку, все согласно http://www.youtube.com/watch?v=2Wenjn0KEKg, вот как это выглядит у меня в редакторе http://savepic.ru/3802514.jpg и так не работает, уже голову себе сламал (((

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy